//
// Created by Administrator on 2025/9/4.
//
// Write a program to read a sequence of strings
// and ints, storing each into a pair. Store the pairs in a vector.

#include <iostream>
#include <map>
#include <string>
#include <vector>

int main()
{
    std::vector<std::pair<std::string, int>> v;
    std::string s;
    int i;
    while (std::cin >> s >> i)
    {
        // v.push_back(std::make_pair(s, i));
        // v.push_back(std::pair<std::string, int>(s, i));
        v.push_back({s, i});
    }

    for (const auto& p : v)
    {
        std::cout << p.first << " " << p.second << std::endl;
    }
}
